#################################
#### Environmental variables ####
#################################

### XDG path
# Local data files location
export XDG_DATA_HOME=${XDG_DATA_HOME:="$HOME/.local/share"}
# Local config files location
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:="$HOME/.config"}
# Local cache location
export XDG_CACHE_HOME=${XDG_CACHE_HOME:="$HOME/.cache"}

### Other path fix
# Default GUNPG config directory
export GNUPGHOME="$XDG_CONFIG_HOME/gnupg"
# Default password store directory
export PASSWORD_STORE_DIR="$XDG_CONFIG_HOME/password-store"
# Less config file location
export LESSKEY="$XDG_CONFIG_HOME/less/lesskey"
# Less history file location
export LESSHISTFILE="$XDG_CACHE_HOME/less/history"
# Wget config file location
export WGETRC="$XDG_CONFIG_HOME/wgetrc"

### Default applications
# Default terminal
export TERMINAL="st"
# Default editor
export EDITOR="nvim"
# Default browser
export BROWSER="firefox"
# Default Pager
export PAGER="less"
# Default LESS options
export LESS="-R -M --shift 5 --mouse --wheel-lines=10"

### PATH
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts"
